Skip to content

Android: Material 3 overhaul, provider logos, full-screen settings, optimistic loading - #374

Merged
sambitcreate merged 47 commits into
mainfrom
feature/android-app-improvements-223897
Oct 8, 2026
Merged

sambitcreate merged 47 commits into
mainfrom
feature/android-app-improvements-223897

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Android overhaul from the triaged audit, plus a new rule for the whole client: load optimistically, never show a spinner for a read. One branch, many commits. Each slice was built in isolation and then merged here.

Fixes for the reported complaints

  • Provider icons: Android shipped no logo assets, so every provider showed a letter tile. All 42 desktop/iOS SVGs now ship as VectorDrawables.
    • They are produced by android/scripts/generate-provider-logos.py (--check detects drift).
    • Mono marks are tintable; multicolor logos keep their colors.
    • Providers without a logo get a neutral fallback tile.
    • The logos' third-party notice is included.
  • Half-height Settings and Paired desktops: both sheets opened half-expanded with gestures disabled, so they could never be expanded.
    • Settings, Installations and pairing are now full-screen pages with large top app bars and predictive back.
    • Every remaining long sheet opens fully expanded.
  • Settings UI: rebuilt on shared M3 settings parts:
    • group titles over tonal cards with inset dividers;
    • rows that are interactive across their whole width (link, switch, value, radio);
    • iOS order: Connected desktop, Providers, Memory (SD-card icon), Voice input, Read Aloud, Appearance (adds Font size and Reduce motion), About.
    • Add provider is a full-screen form. There is an optional Material You "System" theme on Android 12+.

Theme and Material 3

  • Readable accent text: text and icons on accent colors are picked by contrast, matching the desktop accentForeground. White text failed 4.5:1 on every dark accent.
  • Typography carries no colors, so buttons, chips and dialogs use their own content colors.
  • Color roles: opaque container roles, and real outline/outlineVariant. Unchecked switch thumbs and dividers were invisible before.
  • Shapes: 107 literal corner radii now use the M3 shape scale.
  • Launch: a day/night launch theme removes the white flash on a dark cold start.
  • Touch targets: segmented controls meet the 48dp minimum.

Model picker

  • One shared picker for the composer, the Bot editor and Bot custom access.
  • Lazy, keyed list; search; collapsible provider groups with logos; Recent picks; Vision/Reasoning on each row.
  • A checked Default row when the chat uses the desktop's model. The chat header shows the model label instead of the raw id.

Optimistic loading

  • Reads are cache-first with background refresh: workspaces, workspace chats, chat transcript, images, Bots, scheduled tasks, Git, Files, and Settings.
  • Disk caches are kept per installation and purged on unpair.
  • Shaped skeletons appear only on a first load with nothing cached.
  • Mutations are optimistic with rollback, or show a pending label for destructive server actions.
  • Foreground revalidation runs when data is more than 60s old.
  • No indeterminate spinners remain. The only progress bar left is the determinate speech-model download.

Navigation and adaptive layout

  • Shared-axis X transitions.
  • Predictive back shows the previous screen during the gesture.
  • Content is capped at a readable width (840dp) on large windows.
  • On Expanded width, the list and the chat sit side by side.

Other fixes

  • Same-named attachments crashed the composer; they are now keyed by id.
  • Stable keys on lazy lists.
  • Camera permission has an "Open settings" recovery path.
  • First-run pairing has numbered steps and no dead Close button.
  • About 750 user-visible strings now live in string resources, with plurals.

Verification

  • :app:testDebugUnitTest (~480 tests), :app:lintDebug, :app:compileDebugAndroidTestKotlin: pass.
  • :app:connectedDebugAndroidTest on an API 36 emulator: 126 tests pass after integration. One test was updated to expect the corrected singular "1 file" label.

Notes

  • With contrast-picked accent text, Aiden's light-mode blue (#0B7DE5) uses black labels, as the desktop does. White only reaches 4.13:1 there.
  • Left in English on purpose: error fallbacks from view models and copy from JVM-tested presentation helpers. Moving them needs a resource-id contract.
  • iOS and server are unchanged. No protocol or contract changes.

🤖 Generated with Claude Code

sambitcreate and others added 30 commits October 7, 2026 12:33
…ly expanded

Same-named attachments shared a LazyRow key and crashed the composer;
removal also matched by name. Long-form sheets (Settings, Paired desktops,
Scheduled tasks, folder browser, Git, bot tools) opened half-expanded with
gestures disabled, so they could never be expanded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…text

- onPrimary, primary buttons, send, user bubbles and FAB pick white or black
  by contrast (desktop accentForeground); dark accents previously failed 4.5:1.
- Typography no longer bakes colors, so buttons, chips and dialogs read
  their container content color; root LocalContentColor is the foreground.
- Opaque container roles, real outline/outlineVariant (unchecked switch thumbs
  and dividers were invisible), inverse and tertiary roles set.
- Palette colors are parsed once instead of on every access.
- Day/night launch theme removes the white cold-start flash; drop deprecated
  bar color writes now that enableEdgeToEdge owns them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cold launch reset the Workspace list to empty until /server and
/workspaces answered, so the home screen had nothing to group its cached
chat summaries under and looked empty while connecting. Add
AidenReadSnapshotCache, a per-installation, size-bounded disk cache for
screens with no dedicated cache (Workspace list now; Git review, branches
and worktrees next). The coordinator seeds the list from it on activation,
stores each successful read, and purges it with the other installation
stores on unpair. Snapshots are display-only; writes still need fresh reads.

Also drop the redundant Role.Button semantics AidenToolbarAction added on
top of IconButton's own button role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Workspace home: saved chat rows render while connecting and refreshing; a
first load with nothing saved shows shaped skeleton rows (announced once as
"Loading chats") instead of a centred spinner or a premature "No Workspaces
Yet". A failed refresh keeps saved rows and shows an inline error above
them; only an empty first read becomes the full error state. "Load more"
previews the next page as skeleton rows. AidenReadPresentation decides
content / skeleton / empty / failed the same way for every screen.

Workspace directory: a Workspace's chats render from a saved listing in the
per-installation snapshot cache and refresh in the background. Renames show
at once and roll back with a snackbar on failure; removals and worktree
deletes are destructive and refusable, so their rows show an in-place
"Removing…" state until the desktop answers. Errors that were silently
swallowed now surface. The coordinator reconciles create/rename/remove into
its list from the server's answer before the background refresh. Lists in
the directory and folder browser get stable keys.

Working chat rows and in-flight action segments use a breathing activity dot
(AidenActivityDot, still under Reduce Motion) instead of a spinner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…als the previous screen

Screen changes slid vertically and the predictive back gesture only shrank
the current screen; the previous screen appeared only after release, so the
gesture never previewed where back would land.

The host now drives a SeekableTransitionState. Pushes and pops use the M3
shared-axis X pattern (30dp travel with a fade-through), with child
animations linear in transition time and the M3 emphasized curve applied to
the transition fraction. A predictive back gesture scrubs the first part of
the pop: the previous screen is composed underneath and fades in while the
departing screen shrinks to 90%, rounds, lifts, and shifts away from the
swipe edge. Cancelling scrubs back and drops the revealed screen; releasing
finishes the same transition, so neither screen is recreated and saved
per-entry state is untouched. Reduced motion keeps the instant swap and
skips the preview. MainActivity now passes aidenReduceMotion() so the
system animator setting is honored as well as the Appearance toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The model picker needs a Recent section. The preference store already
keeps the last explicit composer pick per paired Mac; it now also keeps
up to five distinct provider/model routes, newest first, recorded by the
same remember() call and purged with the pairing. The field defaults to
empty, so existing files load unchanged and older builds ignore it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Android shipped no provider marks, so every provider rendered as a
letter tile while desktop and iOS showed real logos. The 42 canonical
SVGs in renderer/assets/provider-logos are now converted into
VectorDrawables by a re-runnable, standard-library Python script
(android/scripts/generate-provider-logos.py, --check fails on drift).

The converter covers only the SVG subset those files use and fails
loudly otherwise: it resolves Illustrator class CSS (Z.AI), nested svg
and media-query styles (OpenCode), clipPath (Groq), translated
polygons (xAI), and packed arc flags. It drops elements wholly outside
the viewBox so the Fireworks, Together, and Grok wordmarks are not
carried as dead path data, and it only merges shapes whose bounds are
disjoint so opposite winding cannot punch holes. Mono marks get a
single black fill so Compose can tint them like desktop's CSS mask and
iOS template images; multicolor marks keep brand colors.

Each drawable was converted back to SVG and rasterized beside its
source to confirm the shapes match. The third-party notice mirrors the
iOS copy and ships in the APK assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AidenProviderIcon resolved the same slugs as desktop and iOS but only
used them to choose a brand color for a monogram. It now maps each slug
to its bundled drawable: mono marks render through Icon with the
caller's tint or onSurface, and the multicolor set (shared with desktop
and iOS) renders through Image in brand colors. Custom artwork still
takes precedence.

Unknown and custom providers fall back to a neutral initial on
surfaceContainerHigh with onSurfaceVariant ink, matching desktop and
iOS instead of inventing a brand color, so the brand-fill and contrast
helpers are gone. The mark is hidden from TalkBack because every call
site already shows the provider or model name beside it.

JVM tests check that every slug has its own drawable, that Android's
slugs equal the desktop SVG set, and that mono drawables paint one
color. Instrumented tests capture pixels to prove a known provider
draws its tinted logo rather than an initial, the fallback is neutral,
artwork wins, and every bundled logo inflates with visible ink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A chat opened with nothing saved now shows transcript-shaped skeleton
bubbles (announced once as "Loading conversation") from the first frame;
saved chats keep rendering at once and refresh underneath. The loading flag
is published before the request launches so the first frame is not blank.

Image attachments show a skeleton in the image's own box while they load,
and an image decoded once this session is looked up by attachment identity
so a row scrolled back in or a reopened chat renders it on the first frame
without reloading bytes. Saving from the gallery, paging back with "Load
earlier messages" and a pending fork summary use the activity dot instead
of a spinner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The drawables are generated and must not be hand-edited, and the
multicolor set has to stay identical across desktop, iOS, Android, and
the generator; note both for future work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On tablets, foldables, and landscape phones wider than 840dp the transcript,
composer, and lists stretched edge to edge, giving unreadably long lines.

Adds material3-adaptive 1.2.0 (1.3.0 needs compileSdk 37 and AGP 9.1) and
ui/theme/AidenAdaptive.kt: M3 width classes with a LocalAidenWindowClass
override, and Modifier.aidenReadableWidth(), which caps content at 840dp and
centers it. The cap follows the measured space rather than the window class,
so it is a no-op below 840dp (phone layouts unchanged) and stays right in
split screen. It is applied once at each screen root after the Scaffold
padding: chat transcript and composer bar, workspace home and directory,
Bots home and profile, scheduled tasks, git review, and the workspace
environment. The git unified diff stays full width for code. M3 dialogs and
sheets already cap themselves at 560dp and 640dp.

Records the navigation-motion and adaptive decisions, plus the deferred
list-detail plan, in project memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The composer's model sheet was a non-lazy column of filled radio pills
with no search, no capability detail, and nothing checked when a chat ran
on the Mac's default model. It is replaced by one reusable picker:

- pinned summary of the current model (provider, Vision/Reasoning, Mac
  default) with the thinking selector under it, then a search field that
  matches every word against model label, id and provider label;
- a LazyColumn keyed by provider/model route with a checked Default row
  when no listed model is selected, a Recent section, and collapsible
  provider groups under sticky headers with provider artwork;
- whole-row radio selection inside a selectable group, selected state as
  a secondaryContainer fill plus a check, no borders.

The same model offered by two providers stays two distinct routes.
The sheet opens fully expanded and tall with the list scrolling inside;
reduced motion keeps the still sheet. The chat top bar now shows the
model label with a small provider icon instead of the raw id, and the
composer pill uses labelMedium with an 18dp icon that receives the model
id so Anthropic models show the Claude mark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both Bot screens drew their own provider/model radio lists: a clickable
row plus a separate RadioButton gave two focus stops per model, there was
no selectable group, and provider icons lost their model context. They
now show a single row naming the current model that opens the shared
picker sheet, keeping the screens' own scrolling intact. Unavailable
providers and models remain listed but cannot be picked, matching what
the save path accepts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bot profile: the saved detail, Favorites and chats render at once and
refresh underneath; each refreshed detail is written back to the Bot cache.
A first open with nothing saved shows a profile-shaped skeleton, and an
unsaved Bot while disconnected says it is unavailable instead of loading
forever. Pin, unpin and Favorite reordering apply immediately, reconcile
with the desktop's Favorites and roll back with an error; one write runs at
a time so each carries the latest revision. Archive and Restore wait for the
desktop with a pending menu label. A failed "Chat" open now surfaces.

Bot editor and Custom Access show form-shaped skeletons while the capability
catalog arrives (they build drafts against the live catalog, so they do not
edit a saved copy) and a clear state when it fails. The Custom Access Bot
switcher renders from the saved Bot list and its chips are keyed by Bot id.
Avatar upload and revert show an in-place pending label, not a spinner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pause and Resume flip the task at once and reconcile with the desktop's
answer; a failure restores the task as it was, shows the error and
refreshes. Run now and Delete wait for the desktop, so they hold in-place
pending labels ("Starting…", "Deleting…") instead of a spinner, and a row
with a write in flight shows the activity dot.

A first task list read with nothing saved shows skeleton rows (announced
once) instead of a centred spinner; saved tasks stay while refreshing.
Recent runs preview as skeleton rows on their first read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…optimistic

Settings fetched providers, memory, Read Aloud, and speech status inside the
composable, so every visit (and every rotation) started from nothing behind a
spinner, and the memory switch showed On before anything had loaded.

AidenSettingsStore now owns that data for the process lifetime. It follows the
coordinator's active client, shows the installation's cached snapshot
(AidenSettingsCache, keyed like the other installation caches) immediately,
refreshes sections in the background, and applies memory and speech-model
changes optimistically with rollback and a typed failure. Caches of unpaired
installations are pruned from the container, so removal and credential
revocation leave no settings behind without touching the coordinator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a dynamic theme preset whose palette is derived from the device's
wallpaper scheme, so the whole app (which paints from AidenPalette) follows
it. Canvas, sidebar, and raised step through the scheme's surface tones the
way Aiden's own palettes do; accent and danger take primary and error.
Material has no success or warning roles, so those keep Aiden's semantic
colors. The preset is hidden below API 31 and falls back to the Aiden
palette if one is restored there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Git review, branches and worktrees render from the per-installation
snapshot cache at once and revalidate in the background; a first open with
nothing saved shows skeleton rows, and one that cannot load says so with a
retry instead of a blank screen. The saved review's snapshot id may be
stale, so commit, diff, checkout and push wait for the fresh read ("Checking
for changes…") rather than sending it.

Git writes can be refused by the repository, so none is shown as done
early: commit, checkout, branch and worktree creation and push hold an
in-place pending label on the branch card and mark the review stale until
it is reread. Compare previews its result as skeleton rows and its button
reads "Comparing…". Branch, changed-file, comparison and worktree lists are
keyed by id.

Files shows the saved tree at once while it revalidates (read-only until
the fresh index lands, without the offline banner meanwhile), skeleton rows
on a first read, and Save holds a "Saving…" label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings and Paired desktops were bottom sheets over the product shell (the
pairing sheet even nested its own Scaffold), with one flat scroll, mixed
section styles, cards on a same-colored sheet, a switch-only memory toggle,
and a five-field Add provider AlertDialog behind a usually-disabled button.

They are now pushed destinations (Settings pages, Installations, PairDesktop)
with large top app bars, back and predictive back from the host, and correct
edge-to-edge and IME insets. Settings follows the iOS order and is built from
shared group and row primitives: one group-title style, tonal cards that read
against the page, inset dividers, and whole-row switch/radio/navigation
targets. Appearance exposes the existing font size and reduce-motion
options; theme tiles are single radio stops with an in-tile check. Add
provider is a full-screen form, and the page explains the requirement
instead of showing a disabled button.

Pairing lists desktops as a radio group with an "Active" line, removes only
after confirmation, and puts the camera first with a height that adapts to
the window. First run reads "Connect your desktop" with numbered steps and
no close action. A permanently denied camera offers the app's system
settings and is re-checked on resume; the scanner re-arms after a failed
pair and releases the camera when it leaves. No spinners remain: busy
actions disable and relabel. Accent text uses palette.onAccent, segmented
pills meet the 48dp target, and the rewritten screens' copy lives in
strings.xml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…app-improvements-223897

# Conflicts:
#	android/app/src/main/res/values/strings.xml
The home and Bots view models only reloaded when the client or connection
changed, so coming back to the app hours later showed stale rows with no
refresh. On ON_START they now reread underneath what is shown once the last
successful read is older than a minute (or never succeeded), never stacking
on a read already in flight. The desktop folder browser previews its roots
as skeleton rows on a first read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e scrubs

The integrated device run failed "releasing a predictive back gesture pops
to the revealed screen": mid-gesture the shell was not composed at all and
the stack was still [Shell, Bot]. A tree dump showed the cause. The test
dispatched the gesture in the same frame as the "open bot" click, before
recomposition enabled the host's PredictiveBackHandler, so the events never
reached the host. Saved shell state was not lost. dragBack now waits for
idle first, as a real finger would arrive at least a frame later.

The same window exposed a real race. A gesture that starts while the push
that opened the screen is still animating (or its LaunchedEffect has not
started) would seek, then have the push's animateTo retarget the
transition away from the revealed screen. While a gesture is scrubbing, it
now owns the transition: it first lands any in-flight push with snapTo, and
stack-driven animations hold off until the gesture commits or cancels. If
something else navigated mid-gesture, the host animates to that screen
afterwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a retry the directory kept its listing when the selection changed,
so a newly selected Workspace briefly showed the previous one's chats.
Track which Workspace the shown listing belongs to and start each selection
from its own saved snapshot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
107 literal RoundedCornerShape radii across 15 sizes now resolve to
MaterialTheme.shapes (xs 4, s 8, m 12, l 16, xl 28), and sheet tops use
BottomSheetDefaults.ExpandedShape. Asymmetric bubble/connected shapes and
computed radii keep their own geometry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sambitcreate and others added 10 commits October 7, 2026 13:24
Bots home, profile, editor, Custom Access, Image Studio and the generated
avatar lifecycle now read their labels, empty states, dialogs and error
fallbacks from strings.xml. The inbox activity status and editor access
mode carry string resource ids instead of English labels, and the
capability option titles resolve in composition. English values are
unchanged.

Left in English on purpose: the bot-first prototype fixtures (dev only),
avatar shape/colour/detail chip labels derived from protocol enum names,
DEFAULT_INSTRUCTIONS (sent to the desktop as the Bot's instructions), and
the JVM-tested avatar upload model and Bots ViewModel error fallbacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… windows

On tablets and unfolded foldables, opening a chat replaced the whole window,
so moving between chats meant going back to the list every time.

On Expanded windows the shell now stays in a 360dp list pane while the chat
it opened fills the detail pane, with a placeholder until a chat is open.
The host's transition holds layout scenes (aidenNavigationScene) instead of
single screens, and a second seekable transition drives the detail pane.
Switching or popping chats animates, and predictive back scrubs, inside the
pane while the shell stays put. Any other screen (Bot, Settings, Git) still
covers the window, and back returns to the same layout. Saved-state keys are
unchanged. A screen moving between layouts on resize is composed only by
its target scene, so no key is ever live twice, and resizes snap instead of
sliding. Compact and Medium windows lay out exactly as before.

Tapping a chat in the list replaces the open chat (openFromShell) rather
than stacking. The chat beside the list hides its back arrow through
LocalAidenShowsUpNavigation. A chat opened from a chat keeps its arrow, and
system back still pops in both cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat transcript, composer, message menus, image deck and viewer, fork
cards, question card, approvals, code blocks, and the task and agent
progress sheets now read their labels, content descriptions, accessibility
actions and toasts from strings.xml. Counts use plurals, sentences take
format arguments, and the agent role/state and run-input mode labels map
to resource ids. AidenChatDetailScreen only swaps literals for resource
lookups so concurrent edits there merge cleanly.

Left in English on purpose: AidenChatViewModel and voice controller error
fallbacks, AidenChatForkErrors, and JVM-tested presentation helpers
(Read Aloud progress label, image count badge, worked-for and timestamp
labels), which would need a resource-id contract to move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The scheduled task list, detail, delete dialog, filters and search now
read their labels, empty states, pending labels and error fallbacks from
strings.xml, with format arguments for task names. English is unchanged.

The filter titles and schedule/status descriptions come from
AidenScheduledTaskPresentation and the model layer and stay as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…py into string resources

The product shell (area titles, switcher description, top bar actions and
connection labels), the Bot chat tools bar and access sheet, the model
picker scrim, and the default labels of AidenDialogDismissButton and
AidenSkeletonList now come from strings.xml. Scope and access-mode labels
carry resource ids.

Left as is: pairing setup-code example and endpoint defaults, attachment
fallback file names and MIME handling in AidenChatFeature, the device name
sent while pairing, AidenBotChatToolsModel summaries (a state holder, like
the ViewModels), and the unused OrbState labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notification channel names and descriptions, the live agent-run status
line, and the scheduled-run completion and failure bodies now come from
string resources via Context.getString. AgentRunActivityStatus gains a
titleRes for the notification while its English title keeps serving the
in-app progress line and its JVM tests.

AidenOnTheGoApp.kt (where the channels are created) sits outside
notifications/ but is the only place that copy lives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nventions

Counts that lint flagged as plural candidates (uncommitted changes, more
chats, truncated entries, completed steps, agent turns/tools/tokens) are
now plurals. chat_progress_steps_done and seven placeholders that use
three dots keep their exact English under tools:ignore because UI tests
match that text.

Adds a .memory note on where Android copy lives, how to name and resolve
it, and what intentionally stays in English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…app-improvements-223897

# Conflicts:
#	android/app/src/main/java/sbtbiswas/AidenOnTheGo/features/chat/AidenChatDetailScreen.kt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sambitcreate
sambitcreate marked this pull request as ready for review October 7, 2026 17:42
@very-hermes-bot

very-hermes-bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Hermes Review Bot

Confidence: 5

Engine: agy/gemini-3.8-flash-high
Review mode: full
Head: 28865e28d675b4e48fe0026a715ef73fa5256a27
Generated: 2026-10-08T02:11:23+00:00
Reviews: 1

Summary

This pull request completes a comprehensive modernization of the Aiden Android client, introducing full Material 3 styling, a full-screen hierarchical settings suite, an optimistic snapshot caching architecture, and brand-compliant provider vectors. Settings mutations are protected against network races via optimistic baselines, generation fencing, and serialized atomic disk persistence in android/app/src/main/java/ai/aiden/agent/settings/AidenSettingsStore.kt. Screen loading across workspace home, chat detail, git status, and scheduled tasks now uses android/app/src/main/java/ai/aiden/agent/cache/AidenReadSnapshotCache.kt for instant, non-blocking UI rendering paired with background revalidation. The custom provider icons are maintained through a standalone generator (android/scripts/generate-provider-logos.py), verified clean in CI --check mode, and navigation across phone and foldable form factors adapts cleanly with predictive back support.

Confidence Score: 5/5

Full diff and complete changed files were inspected end-to-end, verifying thread-safe coroutine synchronization, generation-fenced cache mutations, strict unpair cache purging, CameraX lifecycle release, WCAG contrast resolution, and upstream vector generation.

📁 Important Files Changed
  • android/scripts/generate-provider-logos.py:1: Python generator script converting upstream provider SVGs into normalized Android Vector Drawables with --check drift detection and notice attributions.
  • android/app/src/main/java/ai/aiden/agent/settings/AidenSettingsStore.kt:1: Core settings state store managing optimistic updates, generation tracking, and serialized disk writes with rollback handling.
  • android/app/src/main/java/ai/aiden/agent/cache/AidenReadSnapshotCache.kt:1: Two-tier (in-memory L1 and disk L2) snapshot cache enabling instant screen presentation and peer-scoped cache purging.
  • android/app/src/main/java/ai/aiden/agent/model/AidenModelPicker.kt:1: Reusable M3 model picker supporting composite route keys (${providerId}/${modelId}), provider filtering, context windows, and pricing chips.
  • android/app/src/main/java/ai/aiden/agent/navigation/AidenNavigationHost.kt:1: Top-level adaptive navigation controller handling dual-pane layouts on foldables/tablets and predictive back transitions.
  • android/app/src/main/java/ai/aiden/agent/theme/AidenTheme.kt:1: Material 3 theme layer mapping Aiden desktop appearance tokens with dynamic contrast-checked onAccent color calculation.

Findings

No findings.

📊 Sequence Diagram
sequenceDiagram
    autonumber
    actor User
    participant UI as Screen Composable
    participant VM as ViewModel
    participant Cache as AidenReadSnapshotCache
    participant Coord as AidenRemoteCoordinator
    participant Desktop as Aiden Desktop (Peer)

    User->>UI: Navigate to screen
    UI->>VM: Request screen state
    VM->>Cache: readSnapshot(peerId, scope, key)
    alt Cache hit (L1 / L2)
        Cache-->>VM: Cached snapshot
        VM-->>UI: Emit optimistic state (loading = false)
        UI-->>User: Render content immediately
    else Cache miss
        Cache-->>VM: null
        VM-->>UI: Emit initial loading state
        UI-->>User: Show shimmer / skeleton indicator
    end
    VM->>Coord: fetchRemoteData(peerId, scope, key)
    Coord->>Desktop: Send read request over Aiden Remote
    Desktop-->>Coord: Return fresh peer payload
    Coord-->>VM: Deliver fresh payload
    VM->>Cache: writeSnapshot(peerId, scope, key, payload)
    VM-->>UI: Emit reconciled state
    UI-->>User: Render updated content seamlessly
Loading

Machine-Readable Findings

[]


Last reviewed commit: 28865e28d675
Reviews (1) · Comment /hermes review to trigger a new review · /hermes review full for full re-review

…d icon

- QR scanner: if the camera provider resolves after the scanner left
  composition, don't bind the camera to the still-resumed host lifecycle or
  feed frames to the closed scanner.
- Settings: a same-desktop rebind abandons in-flight memory/speech
  reconciliation, so it now restores the last confirmed values instead of
  keeping unconfirmed optimistic ones.
- Provider form: replace the Psychology (brain) glyph with Lightbulb, per
  AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Four correctness issues remain: late reads can undo pairing-cache cleanup, cancelled back previews can clear unread state, and optimistic settings can diverge from confirmed desktop state.

Reviewed changes across the full Android overhaul, including the latest camera-teardown, rebind-rollback, and icon fixes in 83890fc5.

  • Material 3 foundation: Reviewed theme roles, contrast-picked foregrounds, typography, shapes, dynamic color, launch surfaces, and adaptive widths.
  • Settings and pairing: Reviewed full-screen destinations, shared settings rows, process-owned settings/cache state, provider creation, speech controls, and camera recovery.
  • Models and identity: Reviewed generated provider logos, artwork precedence, the shared searchable model picker, recents, and model subtitles.
  • Cache-first behavior: Reviewed workspace, chat, Bot, scheduled-task, Git, Files, and image loading plus optimistic/pending mutation paths and unpair cleanup.
  • Navigation and copy: Reviewed seekable predictive back, expanded list/detail layout, saved-state ownership, attachment keys, localized strings, and behavioral tests.
  • Verification: Existing JVM tests, Android-test compilation, lint, and logo drift check passed. Two independent scratch tests reproduce the settings findings on the latest head; connected instrumentation was not run here because adb is unavailable.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol | 𝕏

…timism

- Git review/branches/worktrees and Bot profile reads check that their
  client and installation still hold read authority before publishing or
  caching, so a read that lands after unpairing or switching cannot recreate
  a purged cache (coordinator.holdsReadAuthority/storeReadSnapshotIfCurrent).
- Screens revealed under a predictive-back gesture are composed but not
  committed (LocalAidenIsCommittedDestination); a chat only counts as
  foregrounded (marked read, notification quieted) once the pop lands.
- Settings persist desktop-confirmed values for sections with an unconfirmed
  change, and speech actions run one at a time with refresh/poll held off
  while one is pending, so older responses cannot overwrite newer choices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Two settings races need correction: queued persistence can restore an unpaired desktop's cache, and an older speech read can still overwrite a confirmed model choice.

Reviewed changes in 51282e56 since the previous review at 83890fc5. This pass reused the initial review for the unchanged overhaul and fully inspected the new commit, its affected full-diff sections, and surrounding lifecycle/cache consumers.

  • Fenced late reads: Added client/installation authority checks before Git and Bot refresh results are published or cached.
  • Separated previews from navigation: Added committed-destination state and required it for chat foreground admission during predictive back.
  • Revised settings reconciliation: Persisted confirmed values behind pending optimism, persisted rollbacks, and gated speech actions and refresh/poll publication.
  • Extended behavioral coverage: Added pairing-authority, predictive-navigation, rejected-memory persistence, and concurrent-speech-action tests.

Focused AidenSettingsStoreTest and AidenRemoteCoordinatorClientTest plus instrumentation-test compilation passed. Two independent JVM probes reproduce the inline findings against the real settings store/cache. Connected UI tests were not run because adb is unavailable.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol | 𝕏

- The settings cache refuses installations no longer paired, and queued
  writes check Settings is still bound to that installation, so a snapshot
  queued before unpairing cannot recreate the removed cache.
- Speech status reads record the speech-action count when they start and
  are dropped if an action started since, so an older read finishing after
  a confirmed choice cannot revert it (refresh and download polling).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The revised speech-read guard still allows a read started during a pending action to overwrite its confirmed result.

Reviewed changes in 785812bc since the prior review at 51282e56. This pass inspected the complete incremental and commit diffs, all three affected full-PR-diff sections, and surrounding cache/lifecycle/server consumers; it reused prior full-review coverage for the unchanged Android overhaul.

  • Fenced queued settings writes: Checked the active installation before persistence and enforced pairing admission under the cache's synchronization lock.
  • Added speech-operation ownership: Captured an action counter for refresh and polling responses to reject reads predating a newer action.
  • Extended behavioral coverage: Added held-writer/unpair and held-read/selection tests.

The focused settings-store/cache suites passed all 18 tests. Independent JVM probes confirmed the cache fence and reproduced the remaining speech race against the real store and disk cache.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol | 𝕏

The speech-action counter now advances when an action settles as well as
when it starts, so a status read begun while a choice was still pending is
also rejected after the choice confirms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes in ca917f52 since the prior review at 785812bc. This pass inspected the complete incremental and commit diffs, both affected full-PR-diff sections, and surrounding lifecycle, cache, and server consumers; it reused prior full-review coverage for the unchanged Android overhaul to focus verification on the remaining speech race.

  • Advanced speech-read ownership when an action settles, covering success, failure, and cancellation so overlapping refresh and polling responses cannot overwrite its result.
  • Added behavioral coverage for a status read started during a pending selection, asserting the confirmed model survives in live state and the disk cache.
  • Verified settlement and polling behavior with all 19 focused settings-store/cache tests and four independent JVM probes, including reopened-cache assertions and fresh polling after stale-read rejection. All passed. Connected UI tests were not rerun for this store-only delta; exact-head hosted CI remains a separate merge prerequisite.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@very-hermes-bot very-hermes-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline review — 1 finding(s) anchored to the diff. See the pinned summary comment for the overview.

A memory toggle advances a counter when it starts and when it settles; a
memory read records it at start and is dropped if it moved, so a stale read
finishing after a confirmed toggle cannot revert it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes in e2c160d8 since the prior Pullfrog review at ca917f52. This pass read the complete incremental and commit diffs, both affected full-PR-diff sections, and surrounding settings lifecycle, persistence, and server consumers; it reused prior full-review coverage for the unchanged overhaul to focus verification on the new memory-read ordering.

  • Fenced memory refresh results with a counter advanced when a toggle starts and settles, preventing overlapping reads from replacing confirmed values or rollback state after success, failure, or cancellation.
  • Added behavioral coverage for a held memory read completing after a confirmed toggle, asserting both live state and persisted settings.
  • Verified ordering and recovery with all 20 focused settings-store/cache tests and four independent JVM probes. All passed, including reopened-cache checks, reads begun during a toggle, rejected/cancelled actions, fresh external settings, and subsequent revision-checked toggles.

Connected UI tests were not rerun for this store-only delta. Exact-head CI remains a separate merge prerequisite; the Android job was still running when checked.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

…mprovements-223897

# Conflicts:
#	android/app/src/test/java/sbtbiswas/AidenOnTheGo/features/chat/AidenComposerPresentationTest.kt
@sambitcreate
sambitcreate merged commit ecf9949 into main Oct 8, 2026
22 checks passed
@sambitcreate
sambitcreate deleted the feature/android-app-improvements-223897 branch October 8, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants